import { createApp } from "vue"
import App from "./App.vue"
import svgIcon from "./components/svgIcon/index.vue" // 全局svg图标组件
import 'virtual:svg-icons-register'
import router from './router'
import 'element-plus/theme-chalk/el-message.css'
import axios from "./plugins/axios"
import { createPinia } from 'pinia'
import screenShort from "vue-web-screen-shot"

const app = createApp(App);

const set = new Set([router, axios, createPinia()]);

for (let item of set) app.use(item);

app.use(screenShort, {
  clickCutFullScreen: true,
  noScroll: false,
})
app.component("svg-icon", svgIcon).mount("#app");
